import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  warehouseArr: [{ required: true, message: "上架库位为必填项", trigger: "blur" }],
  materialId: [{ required: true, message: "物料编号必填项", trigger: "blur" }],
  number: [{ required: true, message: "上架数量为必填项", trigger: "blur" }],
  batchNo: [{ required: true, message: "批次号为必填项", trigger: "blur" }],
  workbinNo: [{ required: true, message: "所存放的料箱编号为必填项", trigger: "blur" }],
});
